package com.order.itemcategoryproject.service.lmpl;

import com.order.itemcategoryproject.mapper.dArcStaffMapper;
import com.order.itemcategoryproject.pojo.dArcStaff;
import com.order.itemcategoryproject.service.dArcStaffService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class dArcStaffServicelmpl implements dArcStaffService {


    @Resource
    private dArcStaffMapper dArcStaffMapper;

    /**
     * 根据staffId获取制单人信息
     * @param staffId
     * @return
     */
    @Override
    public dArcStaff getStaffInfoByStaId(String staffId) {
        return dArcStaffMapper.getStaffInfoByStaId(staffId);
    }


    /**
     * 根据制单人名称获取制单人信息
     * @param name
     * @return
     */
    @Override
    public dArcStaff getstaffInfoByName(String name) {
        return dArcStaffMapper.getstaffInfoByName(name);
    }


    /**
     * 根据客户编号以及名称获取当前客户信息是否正确
     * @param staffId
     * @param password
     * @return
     */
    @Override
    public dArcStaff selectStaffInfoByIdAndPassword(String staffId, String password) {
        return dArcStaffMapper.selectStaffInfoByIdAndPassword(staffId, password);
    }
}
